{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
    <script type="text/javascript">
        var primary_menu = "menu_2";
        var sub_menu = "menu_2_0";
    </script>
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>生产单元</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">
                            <a href="/facilities/productionEdit/{{ p.id }}" class="btn btn-info">修改</a>
                        </div>
                    </div>
                    <div class="panel-body with-table">

                    <form>
                        <table class="input_in table-detail">
                            <tr>
                                <th width="200">主要设备名称</th>
                                <td>{{ p.name }}</td>
                            </tr>
                            <tr>
                                <th>数量</th>
                                <td>{{ p.count }}</td>
                            </tr>
                            <tr>
                                <th>所在生产单元</th>
                                <td>{{ p.in_unit }}</td>
                            </tr>
                            <tr>
                                <th>生产的产品编号</th>
                                <td>{{ p.code }}</td>
                            </tr>
                            <tr>
                                <th>风险特征</th>
                                <td>{{ p.risk }}</td>
                            </tr>
                            <tr>
                                <th>设计年限</th>
                               <td>{{ p.design_year }}</td>
                            </tr>
                            <tr>
                                <th>使用年限</th>
                                <td>{{ p.use_year }}</td>
                            </tr>
                            <tr>
                                <th>是否通过安监检查</th>
                                <td>{{ p.is_check }}</td>
                            </tr>
                            <tr>
                                <th>设备年故障率</th>
                                <td>{{ p.error_rate }}</td>
                            </tr>
                            <tr>
                                <th>年维护频次</th>
                                <td>{{ p.repair_rate }}</td>
                            </tr>
                            <tr>
                                <th>有无监控设施</th>
                                <td>{{ p.is_monit }}</td>
                            </tr>
                        </table>
                    </form>
                    </div>
                </div>
            </div>

{% endblock %}

{% block js %}
    
{% endblock %}